import axios, { Axios } from "axios";
const context = "/deviceservice";

/**
 * 获取 DevicePreload 分页列表
 */
export function getDevicePreloadPagination(data: any) {
  return axios.get(`${context}/devicePreload/pagination`, { params: data });
}

/**
 * 获取 DevicePreload 所有数据
 */
export function getDevicePreloadAllList(data: any) {
  return axios.get(`${context}/devicePreload/allList`, { params: data });
}

/**
 * 获取 DevicePreload 详情
 */
export function getDevicePreloadDetailById(id: any) {
  return axios.get(`${context}/devicePreload/${id}`, { params: { id } });
}

/**
 * 新增 DevicePreload
 */
export function addDevicePreload(data: any) {
  return axios.post(`${context}/devicePreload`, data);
}

/**
 * 修改 DevicePreload
 */
export function updateDevicePreload(data: any) {
  return axios.put(`${context}/devicePreload`, data);
}

/**
 * 删除 DevicePreload
 */
export function batchRemoveDevicePreload(data: any) {
  return axios.post(`${context}/devicePreload/batchRemove`, data);
}
